//
//  TJTempViewController.swift
//  WeiBo
//
//  Created by TanJian on 15/12/5.
//  Copyright © 2015年 Joshpell. All rights reserved.
//

import UIKit

class TJTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        setupUI()
    }

    func setupUI() {
        
        view.backgroundColor = RandomColor()
        
        
        title = "第\(navigationController?.childViewControllers.count ?? 0)级控制器"
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "PUSH", target: self, action: "pushToNext")
        
    }
    
    
    func pushToNext(){
        
        let VC = TJTempViewController()
        navigationController?.pushViewController(VC, animated: true)
        
    }


}
